import { Component, OnInit } from '@angular/core';

import { Hero, User } from '../hero';
import { HEROES, USERS } from '../mock-heroes';

@Component({
  selector: 'app-my-holiday',
  templateUrl: './my-holiday.component.html',
  styleUrls: ['./my-holiday.component.css']
})
export class MyHolidayComponent implements OnInit {

  users = USERS;
  selectedHero: User;
  onSelect(user: User): void {
    this.selectedHero = user;
  }

  constructor() { }

  ngOnInit() {
  }

}
